<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  props: {
    title: String,
  },
});
</script>

<template>
  <view class="menu-title">
    <view class="menu-title-wrapper">
      <image class="menu-title-line" src="/static/index-light.png" />
      <view class="menu-title-text">{{ title }}</view>
    </view>
  </view>
</template>

<style lang="scss">
.menu-title {
  display: flex;

  .menu-title-wrapper {
    position: relative;
  }

  .menu-title-line {
    position: absolute;
    right: -7rpx;
    bottom: -1rpx;
    width: 86rpx;
    height: 34rpx;
  }

  .menu-title-text {
    position: relative;
    font-size: 36rpx;
    color: #333333;
    line-height: 50rpx;
    font-weight: bold;
  }
}
</style>